﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Loading.aspx.cs" Inherits="DreamCube.Websites.UI.MISCommon.Pages.Loading" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <DC:MyJS runat="server" />
    <DC:EasyUIResource runat="server" />
</head>
<body style="padding:150px 500px">
    <form id="form1" runat="server">
    <div id="div_progressbar"></div>  
    </form>
</body>
</html>

<script type="text/javascript">
    function updateProgressbar() {
        /// <summary>更新滚动条</summary>
        var value = $('#div_progressbar').progressbar('getValue');
        if (value < 100) {
            value += 1;
            $('#div_progressbar').progressbar('setValue', value);
        }
    };

    function loadTargetPage() {
        /// <summary>加载目标页面</summary>
        var goto = MyWebsite.getQueryParam("goto");
        window.location.href = goto;
    };

    $(document).ready(function () {
        $('#div_progressbar').progressbar({
            value: 1,
            text: "正在加载页面..."
        });
        window.setInterval("updateProgressbar()", 100);
        loadTargetPage();
    });
</script>
